<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <input id="fruits" list="fruit" />
  <datalist id="fruit">
    <option value="apple">
    <option value="orange">
    <option value="banana">
  </datalist><br>

  <input type="text" list="list">
  <datalist id="list">
    <option value="测试1"></option>
    <option value="测试2"></option>
    <option value="测试3"></option>
  </datalist>
</body>

</html>